﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Free.Master" Inherits="System.Web.Mvc.ViewPage<Pp.UI.Models.ChangePasswordModel>" %>

<%@ Import Namespace="Pp.UI.Models" %>
<%@ Import Namespace="Pp.Globalization" %>
<%@ Import Namespace="Pp.Core.Extentions" %>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%=Res.Label_PasswordEdit  %></h2>
    <p>
        <%=Res.Information_Change_Password%>
    </p>
    <p>
        <%=Res.Format_Max_Lenght_Password.FormatWith(ViewData["PasswordLength"] )%>
        <%=Html.ValidationSummary() %>
    </p>
    <% using (Html.BeginForm())
       { %>
    <%=Html.Password<ChangePasswordModel>(Res.Label_Current_Password ,d=>d.OldPassword) %>
    <%=Html.Password<ChangePasswordModel>(Res.Label_New_Password ,d=>d.NewPassword) %>
    <%=Html.Password<ChangePasswordModel>(Res.Label_Confirm_password ,d=>d.ConfirmPassword) %>
    <%=Html.Submit(Res.Label_Save, false)%>
    <% } %>
</asp:Content>
